ClockView

A custom view that displays a clock, which can be digital, analog, or a specialized real-time updating clock.

ClockView is a LinearLayout that dynamically inflates and manages one of three internal clock view implementations (DigitalClockView, AnalogClockView, or RealTimeClockView) based on the configuration provided by a Module.

It implements RevelControl to integrate with a playback system and updates its display periodically using a Handler. The update interval varies depending on the type of clock being displayed.

See also

DigitalClockView
AnalogClockView
RealTimeClockView

Constructors

Link copied to clipboard
constructor(context: Context, module: Module)
Constructs a new ClockView.

Types

Link copied to clipboard
interface OnClockUpdate
Interface for internal clock views (e.g.

Functions

Link copied to clipboard
open fun dispose()
Performs cleanup operations for this view.
Link copied to clipboard
open fun getName(): String
Gets the unique name assigned to this control.
Link copied to clipboard
open fun getOptions(): Iterator<out Option>
Gets an iterator over the configuration s for this control.
Link copied to clipboard
open fun getPlaylist(): Playlist
Gets the associated with this control, if any.
Link copied to clipboard
open fun getType(): ModuleType
Gets the type of the underlying module or content associated with this control.
Link copied to clipboard
open fun getZIndex(): Int
Gets the Z-index (stacking order) of this control.
Link copied to clipboard
open fun initialize(module: Module)
Initializes the control with its associated module context.
Link copied to clipboard
open fun isAutoStart(): Boolean
Checks if this control is configured to start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
open fun isStarted(): Boolean
Checks if the control is currently in a started or active operational state.
Link copied to clipboard
open fun setAutoStart(flag: Boolean)
Sets whether this control should start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
open fun start()
Starts or resumes the active operation of this control.
Link copied to clipboard
open fun stop()
Stops or pauses the active operation of this control.